package com.management.commons.exception.ExceptionCode;

public enum  ProjectExceptionCode {
    ADDPROJECT_ERROR(2001,"添加失败"),
    CHANGEPROJECTSTATE_ERROR(2002,"操作失败"),
    ADDPROJECT_ERROR2(2003,"项目名或描述不能为空"),
    CHANGEPROJECT_ERROR(2004,"修改失败"),
    PROJECTSTATE_ERROR(2005,"该项目已关闭"),
    PROJECTNAME_EXISTS_ERROR(2006,"该项目已存在");


    private Integer code;
    private String message;
    ProjectExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
